package com.yh.doing.Mediator.demo;

/**
 * @program: design-patterns
 * @description:
 * @author: yangh0597@163.com
 * @date: 2022-11-26 23:53
 * @problem:
 **/
public class ColleagueA extends Colleague {
    public ColleagueA(Mediator mediator) {
        super(mediator);
        this.mediator.setColleagueA(this);
    }

    public void selfA() {
        System.out.println("ColleagueA selfA");
    }

    public void depB() {
        System.out.println("ColleagueA depB");
        this.mediator.transferB();
    }
}
